package com.stormrage.entity.ent.req;

import java.io.Serializable;
import java.util.List;

import com.stormragetech.core.entity.Page;

/**
 * @author www.stormragetech.com
 * @date 2016年3月7日
 * @version 1.0.0
 */
public class EntAcctReq implements Serializable {

	// ------------------------------- Fields -------------------------------

	private static final long serialVersionUID = 7911280056694392995L;

	// ------------------------------- Fields -------------------------------

	private Integer entId;

	private Integer locked;

	private String acct;

	private String pass;

	private Integer role;

	private String realName;

	private String enterprise;

	private String phone;

	private String email;

	private Page page;

	// ------------------------------- Fields -------------------------------

	public EntAcctReq() {
	}

	// ------------------------------- Fields -------------------------------

	public Integer getEntId() {
		return entId;
	}

	public void setEntId(Integer entId) {
		this.entId = entId;
	}

	public Integer getLocked() {
		return locked;
	}

	public String getAcct() {
		return acct;
	}

	public void setLocked(Integer locked) {
		this.locked = locked;
	}

	public void setAcct(String acct) {
		this.acct = acct;
	}

	public String getPass() {
		return pass;
	}

	public void setPass(String pass) {
		this.pass = pass;
	}

	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getEnterprise() {
		return enterprise;
	}

	public void setEnterprise(String enterprise) {
		this.enterprise = enterprise;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Page getPage() {
		return page;
	}

	public void setPage(Page page) {
		this.page = page;
	}

	// ------------------------------- Fields -------------------------------

	public static EntAcctReq instance(String acct, String pass, Integer role, String realName, List<Integer> res) {
		EntAcctReq entity = new EntAcctReq();
		if (null != acct)
			entity.setAcct(acct);
		if (null != pass)
			entity.setPass(pass);
		if (null != role)
			entity.setRole(role);
		if (null != realName)
			entity.setRealName(realName);
		return entity;
	}

	public static EntAcctReq instance(Integer entId, Integer locked) {
		EntAcctReq entity = new EntAcctReq();
		entity.setEntId(entId);
		entity.setLocked(locked);
		return entity;
	}

	@Override
	public String toString() {
		return this.getClass() + " : entId - " + entId + " locked - " + locked + " acct - " + acct + " pass - " + pass
				+ " role - " + role + " realName - " + realName + " enterprise - " + enterprise + " phone - " + phone
				+ " email - " + email + " page - " + page;
	}

}
